Make GTK_TREE_SORTABLE_*_SORT_COLUMN_ID defines instead of enum
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Wed, 22 Jan 2014 00:48:41 +0000 (19:48 -0500)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Wed, 22 Jan 2014 00:48:41 +0000 (19:48 -0500)
This allows it to be more easily documented.

gtk/gtktreesortable.h

index c9508b5c0c6e3f9aaa5deb21bb026be14df7fc10..848c2afb12f894405ca36820f275ee12c0486219 100644 (file)
@@ -43,6 +43,7 @@ G_BEGIN_DECLS
  *
  * See also gtk_tree_sortable_set_sort_column_id()
  */
+#define GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID (-1)
 
 /**
  * GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID:
@@ -52,11 +53,7 @@ G_BEGIN_DECLS
  *
  * See also gtk_tree_sortable_set_sort_column_id()
  */
-
-enum {
-  GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = -1,
-  GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = -2
-};
+#define GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID (-2)
 
 typedef struct _GtkTreeSortable      GtkTreeSortable; /* Dummy typedef */
 typedef struct _GtkTreeSortableIface GtkTreeSortableIface;